<?php 

class Controller_Errors extends Controller_Abstract
{
	public function actionIndex()
	{
		$pageCurr = $this->_context->get('page', 1);
		$eModel = new Errors();
		
		$errorsNum = $eModel->getErrorsNum();
		$pagination = new Pagination($errorsNum, $this->_context->requestUri(), $pageCurr);
		$this->_view['pagination'] = $pagination->render();
		$this->_view['errors'] = $eModel->getErrors($pageCurr);
	}
}

?>
